package com.honestpeak.datafusion.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.honestpeak.core.datasource.DataSourceContextHolder;
import com.honestpeak.core.datasource.DataSourceType;
import com.honestpeak.datafusion.mapper.DepartmentMapper;
import com.honestpeak.datafusion.model.Department;
import com.honestpeak.datafusion.service.DepartmentService;

@Service
public class DepartmentServiceImpl implements DepartmentService{

	@Resource
	private DepartmentMapper departmentMapper;
	public List<Department> selectAll(){
        DataSourceContextHolder.setDbType(DataSourceType.SPORTS);
		return departmentMapper.selectAll();
	}
}
